package com.gps.pe.exception;

/**
 * 
 * @author GPS
 *
 */
public class ValidationException extends ServiceException {

	private static final long serialVersionUID = 1L;

	/** Result of validation. */
	private ValidationResult validationResult;

	/**
	 * Constructor.
	 * 
	 * @param message
	 *            exception message
	 * @param object
	 *            object that caused the exception
	 * @param validationResult
	 *            result of validation
	 */
	public ValidationException(String message, Object object, ValidationResult validationResult) {
		super(message, object);
		this.validationResult = validationResult;
	}

	/**
	 * @return the validationResult
	 */
	public ValidationResult getValidationResult() {
		return validationResult;
	}
}
